package com.zenithsun.common.review.service;

import java.util.Map;

import com.syzg.common.service.BaseService;
import com.zenithsun.common.review.model.Review;

/**
 * 审核管理（共用）
 * @author wanglei@enersun.com.cn
 * @createTime 2016-6-17 08:59:53
 */
public interface ReviewService extends BaseService<Review> {

	/**
	 * 创建一个审核并绑定业务ID和业务标识
	 * @param busId
	 * @param busMark
	 * @throws Exception
	 */
	public Review createReview(String busId, String busMark) throws Exception;
	
	/**
	 * 通过业务ID和业务标识查找审核信息
	 * @param busId
	 * @param busMark
	 * @throws Exception
	 */
	public Review getReview(String busId, String busMark) throws Exception;
	
	/**
	 * 执行审核功能
	 * @param review
	 * @throws Exception
	 */
	public void doReview(Review review) throws Exception;
	
	/**
	 * 修改审批信息，非空则修改，空值则不做修改
	 * @return boolean true成功 false失败
	 * @throws Exception
	 */
	public boolean updateReview(Review review) throws Exception;
	
	/**
	 * 获取未审核图片条数
	 * @return
	 * @throws Exception
	 */
	public Integer queryPicReview() throws Exception;
	
	/**
	 * 获取未审核新闻条数
	 * @return
	 * @throws Exception
	 */
	public Integer queryNewsReview() throws Exception;
}